package Num24_20200320;

import java.util.Scanner;

public class Num24_20200320_hxj {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个不多于5位的正整数：");
        int n = sc.nextInt();
        String m = String.valueOf(n);
        System.out.println("这是一个"+m.length()+"位数");
        StringBuffer sb = new StringBuffer(m);
        sb.reverse();
        System.out.println(sb);
    }
}
